package com.goods.business.service;

import com.goods.common.error.BusinessException;
import com.goods.common.model.business.ProductCategory;
import com.goods.common.vo.business.ProductCategoryTreeNodeVO;
import com.goods.common.vo.business.ProductCategoryVO;
import com.goods.common.vo.system.PageVO;

import java.util.List;

/**********************
 *
 *@Author 闫星忠
 *@Time 2021/12/15  11:59
 *
 */
public interface ProductCategoryService {
    PageVO<ProductCategoryTreeNodeVO> findDepartmentList(Integer pageNum, Integer pageSize);

    List<ProductCategoryTreeNodeVO> getParentCategoryTree();

    void add(ProductCategory productCategory);

    ProductCategoryVO edit(Long id);

    void update(Long id, ProductCategory productCategory);

    void delete(Long id) throws BusinessException;
}
